projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45d6e67
)
arm: socfpga: misc: Add SD controller init
author
Pavel Machek
<
[email protected]
>
Mon, 8 Sep 2014 12:08:45 +0000
(14:08 +0200)
committer
Marek Vasut
<
[email protected]
>
Mon, 6 Oct 2014 15:46:49 +0000
(17:46 +0200)
Add CPU function to register and initialize the dw_mmc SD controller.
This allows us to use the HPS SDMMC block.
Signed-off-by: Pavel Machek <
[email protected]
>
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Chin Liang See <
[email protected]
>
Cc: Dinh Nguyen <
[email protected]
>
Cc: Albert Aribaud <
[email protected]
>
Cc: Tom Rini <
[email protected]
>
Cc: Wolfgang Denk <
[email protected]
>
Cc: Pavel Machek <
[email protected]
>
arch/arm/cpu/armv7/socfpga/misc.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/socfpga/misc.c
b/arch/arm/cpu/armv7/socfpga/misc.c
index 872ea59c64ea6c0591fb3cd3ef512ef3180d2a8a..bf5c668b134973e0ebc7aed863e9b04114fca40f 100644
(file)
--- a/
arch/arm/cpu/armv7/socfpga/misc.c
+++ b/
arch/arm/cpu/armv7/socfpga/misc.c
@@
-10,6
+10,7
@@
#include <netdev.h>
#include <asm/arch/reset_manager.h>
#include <asm/arch/system_manager.h>
+#include <asm/arch/dwmmc.h>
DECLARE_GLOBAL_DATA_PTR;
@@
-61,6
+62,18
@@
int cpu_eth_init(bd_t *bis)
}
#endif
+#ifdef CONFIG_DWMMC
+/*
+ * Initializes MMC controllers.
+ * to override, implement board_mmc_init()
+ */
+int cpu_mmc_init(bd_t *bis)
+{
+ return socfpga_dwmmc_init(SOCFPGA_SDMMC_ADDRESS,
+ CONFIG_HPS_SDMMC_BUSWIDTH, 0);
+}
+#endif
+
#if defined(CONFIG_DISPLAY_CPUINFO)
/*
* Print CPU information